package com.zhentao.file.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "minio")  //yml文件里面 minio accesskey
public class MinioConfigProperties {
    private String accesskey;
    private String secretkey;
    private String endpoint;
    private String bucket;

//    @Bean
//    public MinioClient minioClient() {
//        return MinioClient.builder()
//                .endpoint(endpoint)
//                .credentials(accesskey, secretkey)
//                .build();
//    }
}
